package file;

import java.io.StringReader;

import javax.xml.stream.util.StreamReaderDelegate;

public class Demo4 {

	public static void main(String[] args) {
		StringReader sr=new StringReader("abc");
		int a;
		try {
			while((a=sr.read())!=-1){
				System.out.println((char)a);
			}
			
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}

	}

}
